import 'package:flutter/material.dart' hide MenuController;
import 'package:flutter_soundmagus/page/menu/menu_controller.dart';
import 'package:flutter_soundmagus/widget/page_base.dart';
import 'package:get/get.dart';

import 'menu_view.dart';

class PageMenu extends PageBase {
  final bool left;
  const PageMenu({Key? key, this.left = true}) : super(key: key);

  @override
  _PageMenuState createState() => _PageMenuState();
}

class _PageMenuState extends PageBaseState<PageMenu> {

  @override
  Color get backgroundColor => Colors.transparent;

  @override
  void initState() {
    super.initState();
    Get.put(MenuController());
  }

  @override
  Widget buildBody(BuildContext context) {
    return MenuView(widget.left);
  }
}
